﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Xyz.Web.Reservation.Areas.Auth.Models
{
    public class AuthModel
    {
        /// <summary>
        /// The user's user name.
        /// </summary>
        [Required(ErrorMessage = "Please enter User Name.")]
        [DisplayName("User Name")]
        [DataType(DataType.Text)]
        public string UserName { get; set; }


        /// <summary>
        /// The user's password.
        /// </summary>
        [Required(ErrorMessage = "Please enter Password.")]
        [DataType(DataType.Password)]
        [DisplayName("Password")]
        //[StringLength(8, ErrorMessage = "Minimum length is 8 characters.", MinimumLength = 8)]
        public string Password { get; set; }

        public string Role { get; set; }
    }
}